import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'function.dart';

class MonitorPage extends StatefulWidget {
  @override
  _MonitorPageState createState() => new _MonitorPageState();
}

class _MonitorPageState extends State<MonitorPage> {

  Widget _buildTiles(Map outcome) {
    return new Column(
      children: <Widget>[
        new ListTile(
          title: new Text(
            outcome['originBalance'].toString(),
            style: new TextStyle(fontSize: 22.0, color: Colors.deepOrangeAccent),
          ),
          subtitle: new Text(outcome['updateTime']),
          trailing: new Text(
            outcome['status'] == 2 ? "已到账" : "提币中",
            style: new TextStyle(color: outcome['status'] == 2 ? Colors.green : Colors.black),
          ),
        ),
        Divider(height: 1.0),
      ],
    );
  }

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      theme: new ThemeData(
        accentColor: Colors.deepOrange,
        primaryColor: Colors.deepOrange,
      ),
      home: new Scaffold(
        appBar: new CupertinoNavigationBar(
          actionsForegroundColor: Colors.white,
          backgroundColor: Colors.deepOrange,
          middle: new Text(
            "实时监控",
            style: new TextStyle(
              color: Colors.white,
              fontWeight: FontWeight.normal,
            ),
          ),
        ),
        body: new Center(
          child: new Text(
            "开发中",
            style: new TextStyle(fontSize: 22.0),
          ),
        ),
//          child:
      ),
    );
  }
}
